﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Tc.UI
{
    public class autoinsurancedetail : UIBase
    {
        protected Model.chexian art1 = new Model.chexian();
        protected Model.TcFenlei cate1 = new Model.TcFenlei();

        protected void Page_Load(object sender, EventArgs e)
        {
            
            if (!IsPostBack)
            {
                var id = Request.QueryInt("id");
                if (id > 0)
                {
                    art1 = BLL.chexian.Instance.GetModel(id);
                    if (art1 != null)
                    {
                        cate1 = BLL.TcFenlei.Instance.GetModel(art1.Fenleiid.GetInt());
                        if (cate1 == null)
                            cate1 = new Model.TcFenlei();
                    }
                    else
                    {
                        art1 = new Model.chexian();
                    }
                }
            }
        }
    }
}